//
//  MSHomeHeadView.h
//  testMasory
//
//  Created by xiangbo on 2018/9/19.
//  Copyright © 2018年 xiangbo. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, MSHeadViewType) {
    MSHeadViewTypeFood, // 美食页面的头部
    MSHeadViewTypeHotel // 酒店页面的头部
};

@protocol MSHomeHeadViewDelegate <NSObject>

@optional
/** 展示搜索界面 */
- (void)showSearchViewController;

@end

@interface MSHomeHeadView : UITableViewHeaderFooterView

@property (nonatomic, weak) id<MSHomeHeadViewDelegate>customDelegate;



- (instancetype)initWithFrame:(CGRect)frame headType:(MSHeadViewType)headType;

/** 刷新本地地址标题 */
- (void)refreshLocalTitle;

@end

NS_ASSUME_NONNULL_END
